package com.wn.bean;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

/**
 * @author yellow Docter
 * @date 2022 -05-16
 * @desc
 */
@Data
@NoArgsConstructor
@AllArgsConstructor
@TableName("t_user")
public class User {

    @TableId(type = IdType.AUTO)
    private Integer uid;
    private String username;
    private String password;

    private String salt;

    /**
     *  忽略当前的字段 和 数据库字段没有关系
     */
    @TableField(exist = false)
    private Integer rid;

}
